<template>
  <el-dialog
    @close="cancel"
    :title="rowDetail.title"
    :visible.sync="detailOPen"
    width="600px"
    append-to-body
  >
    <div>发布时间：{{ rowDetail.createTime }}</div>
    <div class="ql-editor" v-html="rowDetail.content"></div>
    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="cancel">确 定</el-button>
      <el-button @click="cancel">取 消</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  props: {
    detailOPen: false,
    rowDetail: {},
  },
  data() {
    return {};
  },
  methods: {
    cancel() {
      console.log("关闭");

      this.$emit("update:detailOPen");
      this.$emit("cancel");
    },
  },
};
</script>
